home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_weap_ailavahit.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  59 lines

  1. # Jones 3D Cog Script
  2. #
  3. # weap_AILavaHit.cog
  4. #
  5. # [MDR]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ===================================================================
  10.  
  11. symbols
  12.  
  13. message        created
  14. message        touched
  15.  
  16. # ************************** TEMPLATES *************************
  17. template    tpl_sparksSM=lavadeathsparks    local
  18. template    tpl_sparksMD=lavasparks            local
  19. template    tpl_exp=+gen_exp_lava_md        local
  20.  
  21. # ************************** MISC LOCAL VARS *******************
  22. thing        t_bullet                        local
  23. thing        t_victim                        local
  24.  
  25. end
  26.  
  27.  
  28. # ===================================================================
  29. code
  30.  
  31. # ...................................................................
  32. created:
  33.  
  34.     t_bullet = GetSenderRef();
  35.  
  36.     CreateThingAtPos(tpl_sparksSM, GetThingSector(t_bullet), GetThingPos(t_bullet), '0 0 0');
  37.     CreateThingAtPos(tpl_sparksSM, GetThingSector(t_bullet), GetThingPos(t_bullet), '0 0 0');
  38.     CreateThingAtPos(tpl_sparksMD, GetThingSector(t_bullet), GetThingPos(t_bullet), '0 0 0');
  39.     CreateThingAtPos(tpl_sparksMD, GetThingSector(t_bullet), GetThingPos(t_bullet), '0 0 0');
  40.  
  41.     return;
  42.  
  43.  
  44. # ...................................................................
  45. touched:
  46.  
  47.     t_bullet = GetSenderRef();
  48.     t_victim = GetSourceRef();
  49.  
  50.     CreateThingAtPos(tpl_exp, GetThingSector(t_bullet), GetThingPos(t_bullet), '0 0 0');
  51.  
  52.     DamageThing(t_victim, 1000, 0x200, t_bullet);            # Inflict SITH_DAMAGE_LAVA
  53.  
  54.     return;
  55.  
  56.  
  57. # ===================================================================
  58. end
  59.